<?php $this->load->view('layout/jingqu/header');?>
<div class="order-page screen-width clearfix">
    <div class="order-left">
        <?php $this->load->view('layout/account_left');?>
    </div>
    <div class="order-right">
        <div class="your-choice">
            <h5>银行卡添加</h5>
            <div class="sale-search">
                <p class="add-bind">您正在为账户<a href="javascript:;"><?php echo $this->userName; ?></a>绑定银行卡</p>
                <div class="add-text">
                    <form id="bank-form">
                        <input type="hidden" name="bank_id" value="<?php echo $bankList[0]->bank_id?>"/>
                        <dl class="clearfix">
                            <dt>
                                <h4>付款方式：</h4>
                                <div class="add-input take-box">
                                      <img src="<?php echo $this->config->show_image_url($bankList[0]->bank_img);?>" id="tank-img">
                                      <ul class="bank-react clearfix" style="display: none;">
                                          <?php foreach($bankList as $value) : ?>
                                          <li data-id="<?php echo $value->bank_id?>">
                                              <img src="<?php echo $this->config->show_image_url($value->bank_img);?>">
                                          </li>
                                          <?php endforeach; ?>
                                      </ul>
                                </div>
                            </dt>
                            <dd class="depict">
                                <i class="iconfont">&#xe616;</i>请填写以下信息用于实名登记
                            </dd>
                            <dd>
                                <h4>类别：</h4>
                                <div class="add-radio">
                                    <label class="clearfix bank-user-type-1">
                                        <input type="radio" class="ce-radio" value="1" name="user_type" checked="checked" />
                                        <p>个人</p>
                                    </label>
                                    <label class="clearfix bank-user-type-2">
                                        <input type="radio" class="ce-radio" value="2" name="user_type"/>
                                        <p>公司</p>
                                    </label>
                                </div>
                            </dd>
                            <dd class="bank-type-1">
                                <h4>姓名：</h4>
                                <div class="add-input">
                                    <input type="text" name="cardholder" placeholder="持卡人">
                                    <span class="error"></span>
                                </div>
                            </dd>
                            <dd class="bank-type-1">
                                <h4>身份证：</h4>
                                <div class="add-input">
                                    <input type="text" name="pin" placeholder="身份证" >
                                    <span class="error"></span>
                                </div>
                            </dd>
                            <dd class="bank-type-1">
                                <h4>银行卡卡号：</h4>
                                <div class="add-input">
                                    <input type="text" name="bank_card" placeholder="银行卡卡号">
                                    <span class="error"></span>
                                </div>
                            </dd>
                            <dd class="bank-type-2 my-hide">
                                <h4>公司名称：</h4>
                                <div class="add-input">
                                    <input type="text" name="company" placeholder="公司名称">
                                    <span class="error"></span>
                                </div>
                            </dd>
                            <dd class="bank-type-2 my-hide">
                                <h4>银行名称：</h4>
                                <div class="add-input">
                                    <input type="text" name="bank_name" placeholder="银行名称" >
                                    <span class="error"></span>
                                    <i>(具体到银行支行)</i>
                                </div>
                            </dd>
                            <dd class="bank-type-2 my-hide">
                                <h4>对公帐号：</h4>
                                <div class="add-input">
                                    <input type="text" name="company_bank" placeholder="对公帐号">
                                    <span class="error"></span>
                                </div>
                            </dd>
                            <dd>
                                <h4>手机号码：</h4>
                                <div class="add-input">
                                    <input type="text" name="mobile_phone" placeholder="手机号码">
                                    <span class="error"></span>
                                </div>
                            </dd>
                            <dd>
                                <h4>验证码：</h4>
                                <div class="add-input add-verify">
                                    <input type="text" name="captcha" placeholder="验证码">
                                    <span class="error"></span>
                                    <a href="javascript:;" id="get-bank-mobile-phone-captcha">
                                        免费获取
                                    </a>
                                </div>
                            </dd>
                            <dd>
                                <h4></h4>
                                <div class="add-check">
                                    <label class="clearfix">
                                        <input type="checkbox" name="is_default" value="1" class="ce-box"/>
                                        <p>设为默认支付方式</p>
                                    </label>
                                </div>
                            </dd>
                            <dd class="add-submit depict">
                                <button type="submit">提交</button>
                                <a href="javascript:history.back()">返回</a>
                            </dd>
                        </dl>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<?php $this->load->view('layout/jingqu/footer');?>

<?php js('gongying', 'bank');?>